import React,{useEffect} from 'react'
import * as api from "./api/index";
import {useDispatch } from 'react-redux'
import Son from './component/Son'


function App() {
  //获取dispatch 方法
  const dispatch = useDispatch()
  useEffect(()=>{
    dispatch(api.get_list())  
  },[])
  return (
    <div>App</div>
  )
}

export default App